package atguigu04.override.exer2;

/**
 * ClassName: Circle
 * Package: atguigu03._extends.exer2
 * Description:
 *      修改继承内容的练习中定义的类Cylinder，在Cylinder中重写父类方法findArea()，用于计算圆柱的表面积
 * @Author BuTang
 * @Create 2023/3/6 10:26
 * @Version 1.0
 */
public class Circle {
    private double radius;

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public Circle() {
        this.radius = 1;
    }
    public double findArea(){
        return 3.14*radius*radius;
    }

}
